package com.stoneframe.util.baseConfig;

import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class ConfigHelper {
	
	private static final Logger logger=Logger.getLogger(ConfigHelper.class);
	
	public static String getPropertiesValue(String key){
		InputStream is=ConfigHelper.class.getResourceAsStream("/configure.properties");
		Properties p=new Properties();
		try{
			p.load(is);
			is.close();
		}catch(Exception e){
			logger.error(e.getMessage());
		}
		return p.getProperty(key);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
